<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <aside th:fragment="left" class="main-sidebar sidebar-dark-primary elevation-4">
        <a href="/index/index" class="brand-link">
            <img src="/adminlte/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
                 style="opacity: .8">
            <span class="brand-text font-weight-light">电子档案系统</span>
        </a>
        <div class="sidebar">
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="/adminlte/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
                </div>
                <div class="info">
                    <a href="#" class="d-block">藤原豆腐车</a>
                </div>
            </div>
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                    <li th:class="${mapping=='user'||mapping=='role'||mapping=='dept'||mapping=='log'||mapping=='func'}?'nav-item has-treeview menu-open':'nav-item has-treeview'">
                        <a href="#" th:class="${mapping=='user'||mapping=='role'||mapping=='dept'||mapping=='log'||mapping=='func'}?'nav-link active':'nav-link'">
                        <i class="nav-icon fas fa-th"></i>
                            <p>
                                系统设置
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item">
                                <a href="/admin/user/list" th:class="${mapping=='user'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>用户管理</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/role/list" th:class="${mapping=='role'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>角色管理</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/dept/list" th:class="${mapping=='dept'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>部门管理</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/func/list" th:class="${mapping=='func'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>功能管理</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/log/list" th:class="${mapping=='log'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>日志管理</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li th:class="${mapping=='archive'||mapping=='archives'||mapping=='scan'}?'nav-item has-treeview menu-open':'nav-item has-treeview'">
                        <a href="#" th:class="${mapping=='archive'||mapping=='archives'||mapping=='scan'}?'nav-link active':'nav-link'">
                            <i class="nav-icon fas fa-copy"></i>
                            <p>
                                档案管理
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item">
                                <a href="/admin/archive/add" th:class="${mapping=='archive'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>档案上传</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/archive/scan" th:class="${mapping=='scan'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>档案扫描</p>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="/admin/archive/list" th:class="${mapping=='archives'}? 'nav-link active' : 'nav-link'">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>档案查询</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </aside>
</body>
</html>